import axios from "axios";

export const getCategoryDataAPI = async (params?: any) => {
    return (await axios.post("/api/category", params)).data;
};

export const getSpendingRankDataAPI = async (params?: any) => {
    return (await axios.post("/api/singlePurchaseRanking", params)).data;
};

export const getPieProportionDataAPI = async (params?: any) => {
    return (await axios.post("/api/consumptionRatio", params)).data;
};

export const getCalendarShowDataAPI = async (params?: any) => {
    return (await axios.post("/api/calendarShow", params)).data;
};
